
package org.come.bean;

import java.math.BigDecimal;
import java.util.LinkedHashMap;
import java.util.List;

import com.tool.role.BaseMeridians;
import com.tool.role.RoleData;
import org.come.Frame.ZhuFrame;
import org.come.entity.RoleSummoning;
import org.come.until.AnalysisString;
import org.come.until.JmSum;
import org.come.until.UserMessUntil;
import org.come.until.Util;
/**
 * 登入返回角色实体类
 *
 * @author 叶豪芳
 * @date : 2017年11月23日 下午2:58:19
 */
public class LoginResult {

	//存放1-12经脉
	private LinkedHashMap<Integer, BaseMeridians> meridiansMap;
	// 帮派守护主副抗性字段(抗性) 存储形式(主属性=值|副属性=值)
	private String resistance = "主-|副-";
	// 帮派名称
	private String gangname;
	// 角色ID
	private BigDecimal role_id;

	// 种族名称
	private String race_name;
	// 用户ID
	private BigDecimal user_id;
	// 种类ID
	private BigDecimal species_id;
	// 召唤兽ID
	private BigDecimal summoning_id;
	// 参战伙伴id
	private String pals;
	// 角色表里的帮派ID
	private BigDecimal gang_id;

	private BigDecimal extPoint;		//扩展属性点

	private Boolean divineRune = false;
	// 坐骑ID
	private Integer mount_id;
	// 队伍ID
	private BigDecimal troop_id;
	// 种族ID
	private BigDecimal race_id;
	// 宝宝id
	private BigDecimal babyId;
	// 转生标识字段（0转为0，1转为1以此类推）
	private int TurnAround = 0;
	// 摆摊ID
	private BigDecimal booth_id;
	// 任务id 现在是徽章id
	private Integer skill_id;
	// 血量
	private BigDecimal hp;
	// 蓝量
	private BigDecimal mp;
	// 金币
	private BigDecimal gold;
	// 点卡
	private BigDecimal codecard;
	// 经验
	private BigDecimal experience;
	// 等级
	private Integer grade;
	// 声望
	private BigDecimal prestige;
	// 战绩
	private BigDecimal pkrecord;
	// 角色名字
	private String rolename;
	// 角色称谓
	private String title;
	// 角色本名
	private String localname;
	// 用户名
	private String userName;
	// 密码
	private String userPwd;
	// 性别
	private String sex;
	// 所在坐标
	private Long x;
	private Long y;
	// 所在地图
	private Long mapid;
	// 帮派职务
	private String gangpost;
	// 帮派成就
	private BigDecimal achievement;
	// 帮派贡献
	private BigDecimal contribution;
	// 师贡
	private BigDecimal shigongx;
	// 根骨
	private Integer bone;
	// 灵性
	private Integer spir;
	// 力量
	private Integer power;
	// 敏捷
	private Integer speed;
	// 定力
	private Integer calm;
	// 修为点
	private Integer xiuwei;
	// 已兑换属性点
	private String extraPoint;
	// 判断是否在战斗中(1、战斗中)
	private Integer fighting;
	// 上线时间
	private String uptime;
	// 存款
	private BigDecimal savegold = new BigDecimal(0);
	// 背包密码
	private String password;
	// 宝宝数据，待产状态的时候就是用减，成长状态用来判断年龄
	private Integer havebaby = 0;
	// 宝宝状态
	private String babyState;
	// 结婚的对象
	private String marryObject;
	// 队伍信息（队长名字|队员一|队员二|.......）
	private String teamInfo;
	// 累计充值金额
	private Integer money = 0;
	// 坐牢标志 PK点数=身份标志=做天牢次数=每周坐牢次数
	private String taskDaily;
	// 脚色服务器区号
	private String serverMeString;
	// 记录积分
	private String Score;
	// 记录击杀记录
	private String Kill;
	// 记录帮派积分
	private Integer bangScore;
	// 水陆大会队伍标识
	private String matchTeam;
	// 额外皮肤
	private String skin;
	private BigDecimal Paysum;// 角色的总充值积分，
	private BigDecimal Daypaysum;// 角色的日累计充值
	private BigDecimal Dayandpayorno;// 连续充值标识 1-7
	private int Dayfirstinorno;// 是否最新叠加冲值标识 0 表示没 有叠加，1 表示今日已经叠加
	private BigDecimal Daygetorno;// 每日特惠领取与否 1 表示领取 2 表示没有
	private String Vipget;// 特权领取规则 1=1|2|3&&2=1|2|3其中1=表示vip特权,2=表示每日充 值领取等级包，1
	// 表示 1 级，2 表示 2 级，以此类推。
	private int lowOrHihtpack;// 小资礼包/土豪礼包获取 权限 1 表示小资礼包，2 表示土豪礼包。
	private String meridians;//经脉
	private Integer hjmax;//幻境
	private Integer fmsld;//法门
	private Integer fmsld2;//法门
	private Integer fmsld3;//法门
	private Integer dangqianFm;
	private int attachPack;// 扩充背包数量
	private String xingpans;

	private String qianDao;//ED=1,10&1,7
	private Long loginTime;
	private Long onlineTime;
	private String gmshoptype;

	private Integer ttVictory;
	private Integer ttFail;
	private BigDecimal ttRecord;
	private Integer gradeincrease;
	private Integer gameTimeRemaining;//剩余点卡
	private Integer currentattribute;//当前属性
	private List<RoleSummoning> showRoleSummoningList;//宠物跟随
	//飞行器
	private String flyskin;
	private Integer fly_id;//飞行器
	private  String BT;
	private String jiesuo;
	private String zhongtian;
	private String liangHao;

	private Integer lianghaotype;
	private String lianghaoValue;
	private String lianghaoexpire;
	private Integer continueprice;
	private String lhbuyid;
	private String bful;
	private String sh;

	private String achieveRecord;
	public Boolean getDivineRune() {
		return divineRune;
	}
	public void setDivineRune(Boolean divineRune) {
		this.divineRune = divineRune;
	}
	public String getLianghaoexpire() {
		return lianghaoexpire;
	}

	public void setLianghaoexpire(String lianghaoexpire) {
		this.lianghaoexpire = lianghaoexpire;
	}
	public Integer getContinueprice() {
		return continueprice;
	}

	public void setContinueprice(Integer continueprice) {
		this.continueprice = continueprice;
	}
	public Integer getLianghaotype() {
		return lianghaotype;
	}

	public void setLianghaotype(Integer lianghaotype) {
		this.lianghaotype = lianghaotype;
	}

	public String getLiangHao() {
		return liangHao;
	}

	public void setLiangHao(String liangHao) {
		this.liangHao = liangHao;
	}

	public int getExtPointInt() {
		if(extPoint == null || extPoint.compareTo(BigDecimal.ZERO)== 0){
			return 0;
		}
		return extPoint.intValue();
	}


	public void setExtPoint(BigDecimal extPoint) {
		this.extPoint = extPoint;
	}

	public String getGmshoptype() {
		return gmshoptype;
	}

	public void setGmshoptype(String gmshoptype) {
		this.gmshoptype = gmshoptype;
	}

	public String getQianDao() {
		return qianDao;
	}

	public void setQianDao(String qianDao) {
		this.qianDao = qianDao;
	}
	public Long getLoginTime() {
		return loginTime;
	}

	public void setLoginTime(Long loginTime) {
		this.loginTime = loginTime;
	}

	public Long getOnlineTime() {
		return onlineTime;
	}

	public void setOnlineTime(Long onlineTime) {
		this.onlineTime = onlineTime;
	}
	public String getScore() {return this.Score;}

	public BigDecimal getScoretype(String type) {
		if (Score == null || Score.equals(""))
			return new BigDecimal(0);
		String[] v = Score.split("\\|");
		for (int i = 0; i < v.length; i++) {
			String[] v2 = v[i].split("=");
			if (v2[0].equals(type))
				return new BigDecimal(v2[1]);
		}
		return new BigDecimal(0);
	}

	public void setScore(String score) {this.Score = score;}

	public String getKill() {
		return this.Kill;
	}

	public double getKilltype(String type) {
		if (Kill == null || "".equals(Kill)) {
			return 0;
		}
		String[] v = Kill.split("\\|");
		for (int i = 0; i < v.length; i++) {
			String[] v2 = v[i].split("=");
			if (v2[0].equals(type)) {
				return Double.parseDouble(v2[1]);
			}
		}
		return 0;
	}

	public void setKill(String kill) {
		this.Kill = kill;
	}

	public String getServerMeString() {
		return this.serverMeString;
	}

	public void setServerMeString(String serverMeString) {
		this.serverMeString = serverMeString;
	}

	public String getTeamInfo() {
		return this.teamInfo;
	}

	public void setTeamInfo(String teamInfo) {
		this.teamInfo = teamInfo;
	}

	public Integer getMoney() {
		return this.money;
	}

	public void setMoney(Integer money) {
		this.money = money;
	}

	public String getBabyState() {
		return this.babyState;
	}

	public void setBabyState(String babyState) {
		this.babyState = babyState;
	}

	public BigDecimal getRole_id() {
		return this.role_id;
	}

	public void setRole_id(BigDecimal role_id) {
		this.role_id = role_id;
	}

	public BigDecimal getUser_id() {
		return this.user_id;
	}

	public void setUser_id(BigDecimal user_id) {
		this.user_id = user_id;
	}

	public BigDecimal getSpecies_id() {
		return this.species_id;
	}

	public String getMarryObject() {
		return this.marryObject;
	}

	public void setMarryObject(String marryObject) {
		this.marryObject = marryObject;
	}

	public void setSpecies_id(BigDecimal species_id) {
		this.species_id = species_id;
	}

	public BigDecimal getSummoning_id() {
		return this.summoning_id;
	}

	public void setSummoning_id(BigDecimal summoning_id) {
		this.summoning_id = summoning_id;
	}

	public BigDecimal getGang_id() {
		return this.gang_id;
	}

	public void setGang_id(BigDecimal gang_id) {
		this.gang_id = gang_id;
	}

	public Integer getMount_id() {
		if (this.mount_id == null) {
			this.mount_id = 0;
		}

		return this.mount_id;
	}

	public void setMount_id(Integer mount_id) {
		this.mount_id = mount_id;
	}

	public BigDecimal getTroop_id() {
		return this.troop_id;
	}

	public void setTroop_id(BigDecimal troop_id) {
		this.troop_id = troop_id;
	}

	public BigDecimal getRace_id() {
		return this.race_id;
	}

	public void setRace_id(BigDecimal race_id) {
		this.race_id = race_id;
	}

	public BigDecimal getBooth_id() {
		return this.booth_id;
	}

	public void setBooth_id(BigDecimal booth_id) {
		this.booth_id = booth_id;
	}

	public BigDecimal getHp() {
		return this.hp;
	}

	public void setHp(BigDecimal hp) {
		this.hp = hp;
	}

	public BigDecimal getMp() {
		return this.mp;
	}

	public void setMp(BigDecimal mp) {
		this.mp = mp;
	}

	public BigDecimal getGold() {
		return this.gold == null ? this.gold : new BigDecimal(JmSum.MZ(this.gold.longValue()));
	}

	public void setGold(BigDecimal gold) {
		if (gold.compareTo(Util.GoldUP) > 0) {
			ZhuFrame.getZhuJpanel().addPrompt2("金币上限9999.99亿,多余的金币丢弃");
			gold = Util.GoldUP;
		}

		this.gold = new BigDecimal(JmSum.ZM(gold.longValue()));
	}

	public BigDecimal getCodecard() {
		return this.codecard == null ? this.codecard : new BigDecimal(JmSum.MZ(this.codecard.longValue()));
	}

	public void setCodecard(BigDecimal codecard) {
		this.codecard = new BigDecimal(JmSum.ZM(codecard.longValue()));
	}

	public BigDecimal getExperience() {
		return this.experience == null ? this.experience : new BigDecimal(JmSum.MZ(this.experience.longValue()));
	}

	public void setExperience(BigDecimal experience) {
		this.experience = new BigDecimal(JmSum.ZM(experience.longValue()));
	}

	public Integer getGrade() {
		return this.grade == null ? this.grade : (int)JmSum.MZ(this.grade.longValue());
	}

	public void setGrade(Integer grade) {
		this.grade = (int)JmSum.ZM(grade.longValue());
	}

	public BigDecimal getPrestige() {
		return this.prestige;
	}

	public void setPrestige(BigDecimal prestige) {
		this.prestige = prestige;
	}

	public BigDecimal getPkrecord() {
		return this.pkrecord;
	}

	public void setPkrecord(BigDecimal pkrecord) {
		this.pkrecord = pkrecord;
	}

	public String getRolename() {
		return this.rolename;
	}

	public void setRolename(String rolename) {
		this.rolename = rolename == null ? null : rolename.trim();
	}

	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title == null ? null : title.trim();
	}

	public String getLocalname() {
		return this.localname;
	}

	public void setLocalname(String localname) {
		this.localname = localname;
	}

	public String getUserName() {
		return this.userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserPwd() {
		return this.userPwd;
	}

	public void setUserPwd(String userPwd) {
		this.userPwd = userPwd;
	}

	public String getSex() {
		return this.sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getRace_name() {
		return this.race_name;
	}

	public void setRace_name(String race_name) {
		this.race_name = race_name;
	}

	public Long getX() {
		return this.x;
	}

	public void setX(Long x) {
		this.x = x;
	}

	public Long getY() {
		return this.y;
	}

	public void setY(Long y) {
		this.y = y;
	}

	public Long getMapid() {
		return this.mapid;
	}

	public void setMapid(Long mapid) {
		this.mapid = mapid;
	}

	public String getGangpost() {
		return this.gangpost;
	}

	public void setGangpost(String gangpost) {
		this.gangpost = gangpost;
	}

	public BigDecimal getAchievement() {
		return this.achievement;
	}

	public void setAchievement(BigDecimal achievement) {
		this.achievement = achievement;
	}

	public BigDecimal getContribution() {
		return this.contribution;
	}

	public void setContribution(BigDecimal contribution) {
		this.contribution = contribution;
	}

	public BigDecimal getShigongx() {
		return this.shigongx;
	}

	public void setShigongx(BigDecimal shigongx) {
		this.shigongx = shigongx;
	}

	public String getGangname() {
		return this.gangname;
	}

	public void setGangname(String gangname) {
		this.gangname = gangname;
	}

	public Integer getBone() {
		return (int)JmSum.MZ(this.bone.longValue());
	}

	public void setBone(Integer bone) {
		this.bone = (int)JmSum.ZM(bone.longValue());
	}

	public Integer getSpir() {
		return (int)JmSum.MZ(this.spir.longValue());
	}

	public void setSpir(Integer spir) {
		this.spir = (int)JmSum.ZM(spir.longValue());
	}

	public Integer getPower() {
		return (int)JmSum.MZ(this.power.longValue());
	}

	public void setPower(Integer power) {
		this.power = (int)JmSum.ZM(power.longValue());
	}

	public Integer getSpeed() {
		return (int)JmSum.MZ(this.speed.longValue());
	}

	public void setSpeed(Integer speed) {
		this.speed = (int)JmSum.ZM(speed.longValue());
	}

	public Integer getCanpoint() {
		int lvl = this.getGrade();
		int Turn = AnalysisString.lvltrue(lvl);
		lvl = AnalysisString.lvlint(lvl);
		int canpoint = lvl * 8;
		canpoint += this.getExtraPointInt();
		if (Turn < 4) {
			canpoint += Turn * 60;
		} else {
			canpoint += 180 + lvl;
		}

		int v = this.getBone();
		canpoint -= v;
		if (v < lvl) {
			JmSum.xiugaiqi();
		}

		v = this.getSpir();
		canpoint -= v;
		if (v < lvl) {
			JmSum.xiugaiqi();
		}

		v = this.getPower();
		canpoint -= v;
		if (v < lvl) {
			JmSum.xiugaiqi();
		}

		v = this.getSpeed();
		canpoint -= v;
		if (v < lvl) {
			JmSum.xiugaiqi();
		}

		v = this.getCalm();
		canpoint -= v;
		if (v < 0 || Turn >= 4 && v < lvl) {
			JmSum.xiugaiqi();
		}

		if (canpoint < 0) {
			JmSum.xiugaiqi();
		}

		return canpoint;
	}

	public String getUptime() {
		return this.uptime;
	}

	public void setUptime(String uptime) {
		this.uptime = uptime;
	}

	public BigDecimal getSavegold() {
		return this.savegold;
	}

	public void setSavegold(BigDecimal savegold) {
		this.savegold = savegold;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Integer getHavebaby() {
		return this.havebaby;
	}

	public void setHavebaby(Integer havebaby) {
		this.havebaby = havebaby;
	}

	public Integer getFighting() {
		if (this.fighting == null) {
			this.fighting = 0;
		}

		return this.fighting;
	}

	public void setFighting(Integer fighting) {
		this.fighting = fighting;
	}

	public BigDecimal getBabyId() {
		return this.babyId;
	}

	public void setBabyId(BigDecimal babyId) {
		this.babyId = babyId;
	}

	public int getTurnAround() {
		return this.TurnAround;
	}

	public void setTurnAround(int turnAround) {
		this.TurnAround = turnAround;
	}

	public String getTaskDaily() {
		return this.taskDaily;
	}

	public void setTaskDaily(String taskDaily) {
		this.taskDaily = taskDaily;
	}

	public String getResistance() {
		if (this.resistance == null || "".equals(resistance)) {
			this.resistance = "主-|副-";
		}

		return this.resistance;
	}

	public void setResistance(String resistance) {
		this.resistance = resistance;
	}

	public String getTeam() {
		return this.teamInfo != null && !"".equals(this.teamInfo) && !"|".equals(this.teamInfo) ? this.teamInfo : this.rolename;
	}

	public Integer getSkill_id() {
		return this.skill_id;
	}

	public void setSkill_id(Integer skill_id) {
		this.skill_id = skill_id;
	}

	public Integer getBangScore() {
		return this.bangScore;
	}

	public void setBangScore(Integer bangScore) {
		this.bangScore = bangScore;
	}

	public String getMatchTeam() {
		return this.matchTeam;
	}

	public void setMatchTeam(String matchTeam) {
		this.matchTeam = matchTeam;
	}

	public Integer getCalm() {
		return this.calm == null ? 0 : (int)JmSum.MZ(this.calm.longValue());
	}

	public void setCalm(Integer calm) {
		this.calm = (int)JmSum.ZM(calm.longValue());
	}

	public Integer getXiuwei() {
		return this.xiuwei == null ? 0 : (int)JmSum.MZ(this.xiuwei.longValue());
	}

	public void setXiuwei(Integer xiuwei) {
		this.xiuwei = (int)JmSum.ZM(xiuwei.longValue());
	}

	public String getExtraPoint() {
		return this.extraPoint;
	}

	public void setExtraPoint(String extraPoint) {
		this.extraPoint = extraPoint;
	}

	//小成修炼
	public String[] getResistance(String type) {
		if (resistance == null || "".equals(resistance)) {
			return null;
		}
		String[] vs = resistance.split("\\|");
		for (int i = 0; i < vs.length; i++) {
			if (vs[i].startsWith(type)) {
				String[] v = vs[i].split("#");
				v[0] = v[0].substring(1);
				return v;
			}
		}
		return null;
	}
	//大成修炼
	public int getExtraPointInt(String type) {
		if (extraPoint == null || "".equals(extraPoint)) {
			return 0;
		}
		String[] vs = extraPoint.split("\\|");
		for (int i = 0; i < vs.length; i++) {
			if (vs[i].startsWith(type)) {
				return Integer.parseInt(vs[i].substring(1));
			}
		}
		return 0;
	}


	public int getExtraPointInt() {
		if (extraPoint == null || "".equals(extraPoint)) {
			return 0;
		}
		String[] vs = extraPoint.split("\\|");
		int p = 0;
		for (int i = 0; i < vs.length; i++) {
			if (vs[i].startsWith("F")) {
				p += Integer.parseInt(vs[i].substring(1));
			}
		}
		return p;
	}


	public void setExtraPoint(String type, int p) {
		type = type.substring(0, 1);
		if (this.extraPoint == null || "".equals(this.extraPoint)) {
			this.extraPoint = type + p;
		}

		String[] vs = this.extraPoint.split("\\|");

		for(int i = 0; i < vs.length; ++i) {
			if (vs[i].startsWith(type)) {
				vs[i] = type + (Integer.parseInt(vs[i].substring(1)) + p);
				StringBuffer buffer = new StringBuffer();

				for(int j = 0; j < vs.length; ++j) {
					if (buffer.length() != 0) {
						buffer.append("|");
					}

					buffer.append(vs[j]);
				}

				this.extraPoint = buffer.toString();
				return;
			}
		}

		StringBuffer buffer = new StringBuffer();

		for(int j = 0; j < vs.length; ++j) {
			if (buffer.length() != 0) {
				buffer.append("|");
			}

			buffer.append(vs[j]);
		}

		if (buffer.length() != 0) {
			buffer.append("|");
		}

		buffer.append(type);
		buffer.append(p);
		this.extraPoint = buffer.toString();
	}

	public void setFGExtraPoint(String type, int p) {
		type = type.substring(0, 1);
		if (this.extraPoint == null || "".equals(this.extraPoint)) {
			this.extraPoint = type + p;
		}

		String[] vs = this.extraPoint.split("\\|");

		for(int i = 0; i < vs.length; ++i) {
			if (vs[i].startsWith(type)) {
				vs[i] = type + p;
				StringBuffer buffer = new StringBuffer();

				for(int j = 0; j < vs.length; ++j) {
					if (buffer.length() != 0) {
						buffer.append("|");
					}

					buffer.append(vs[j]);
				}

				this.extraPoint = buffer.toString();
				return;
			}
		}

		StringBuffer buffer = new StringBuffer();

		for(int j = 0; j < vs.length; ++j) {
			if (buffer.length() != 0) {
				buffer.append("|");
			}

			buffer.append(vs[j]);
		}

		if (buffer.length() != 0) {
			buffer.append("|");
		}

		buffer.append(type);
		buffer.append(p);
		this.extraPoint = buffer.toString();
	}

	public String getSkin() {
		return this.skin;
	}

	public void setSkin(String skin) {
		this.skin = skin;
	}

	public BigDecimal getPaysum() {
		return this.Paysum == null ? this.Paysum : new BigDecimal((this.Paysum.longValue()));
	}

	public void setPaysum(BigDecimal paysum) {
		this.Paysum = paysum;

	}

	public BigDecimal getDaypaysum() {
		return this.Daypaysum;
	}

	public void setDaypaysum(BigDecimal daypaysum) {
		this.Daypaysum = daypaysum;
	}

	public BigDecimal getDayandpayorno() {
		return this.Dayandpayorno;
	}

	public void setDayandpayorno(BigDecimal dayandpayorno) {
		this.Dayandpayorno = dayandpayorno;
	}

	public int getDayfirstinorno() {
		return this.Dayfirstinorno;
	}

	public void setDayfirstinorno(int dayfirstinorno) {
		this.Dayfirstinorno = dayfirstinorno;
	}

	public BigDecimal getDaygetorno() {
		return this.Daygetorno;
	}

	public void setDaygetorno(BigDecimal daygetorno) {
		this.Daygetorno = daygetorno;
	}

	public String getVipget() {
		return this.Vipget;
	}

	public void setVipget(String vipget) {
		this.Vipget = vipget;
	}

	public int getLowOrHihtpack() {
		return this.lowOrHihtpack;
	}

	public void setLowOrHihtpack(int lowOrHihtpack) {
		this.lowOrHihtpack = lowOrHihtpack;
	}

	public String getPals() {
		return this.pals;
	}

	public void setPals(String pals) {
		this.pals = pals;
	}

	public String getMeridians() {
		return meridians;
	}

	public void setMeridians(String meridians) {
		this.meridians = meridians;
	}

	public void setMeridians(BaseMeridians meridians) {
		if (meridiansMap == null) {
			meridiansMap = new LinkedHashMap<>();
		}
		meridiansMap.put(meridians.getBh(),meridians);
		StringBuilder temp = new StringBuilder();
		for (BaseMeridians meridian : meridiansMap.values()) {
			if (temp.length() > 0) {
				temp.append("|");
			}
			temp.append(meridian.toString());
		}
		this.meridians = temp.toString();
	}
	public int getAttachPack() {
		return attachPack;
	}
	public void setAttachPack(int attachPack) {
		this.attachPack = attachPack;
	}
	public Integer getHjmax() {
		return this.hjmax;
	}
	public void setHjmax(Integer hjmax) {
		this.hjmax = hjmax;
	}
	public Integer getFmsld() {
		if (fmsld == null) {
			return 0;
		}
		return fmsld;
	}

	public void setFmsld(Integer fmsld) {
		this.fmsld = fmsld;
	}
	public String getXingpans() {
		return xingpans;
	}

	public void setXingpans(String xingpans) {
		this.xingpans = xingpans;
	}

	public Integer getTtVictory() {
		return ttVictory;
	}

	public void setTtVictory(Integer ttVictory) {
		this.ttVictory = ttVictory;
	}

	public Integer getTtFail() {
		return ttFail;
	}

	public void setTtFail(Integer ttFail) {
		this.ttFail = ttFail;
	}

	public Integer getFmsld2() {
		if(fmsld2 == null){
			return 0;
		}
		return fmsld2;
	}

	public void setFmsld2(Integer fmsld2) {
		this.fmsld2 = fmsld2;
	}

	public Integer getFmsld3() {
		if(fmsld3 == null){
			return 0;
		}
		return fmsld3;
	}

	public void setFmsld3(Integer fmsld3) {
		this.fmsld3 = fmsld3;
	}

	public Integer getDangqianFm() {
		if (dangqianFm == null) {
			PrivateData data= RoleData.getRoleData().getPrivateData();
			String[] vs=data.getSkill("F");
			if (vs!=null) {
				for (int i = 0; i < vs.length; i++) {
					Skill skill = UserMessUntil.getSkillId(vs[i].split("_")[0]);
					if (skill != null) {
						if (race_id.compareTo(BigDecimal.valueOf(10001)) == 0) {
							if (skill.getSkillname().equals("清心静气")) {
								dangqianFm = 1;break;
							} else if (sexisMan(sex)&&skill.getSkillname().equals("利刃加身")||!sexisMan(sex)&&skill.getSkillname().equals("神不守舍")) {
								dangqianFm = 2;break;
							} else if(sexisMan(sex)&&skill.getSkillname().equals("神不守舍")||!sexisMan(sex)&&skill.getSkillname().equals("神力加身")) {
								dangqianFm = 3;break;
							}
						} else if (race_id.compareTo(new BigDecimal("10002")) == 0){
							if (sexisMan(sex)&&skill.getSkillname().equals("幻影迷踪")||!sexisMan(sex)&&skill.getSkillname().equals("刚柔兼备")) {
								dangqianFm = 1;break;
							} else if (sexisMan(sex)&&skill.getSkillname().equals("力挽狂澜")||!sexisMan(sex)&&skill.getSkillname().equals("势如破竹")) {
								dangqianFm = 2;break;
							} else if(skill.getSkillname().equals("兽魂俯首")) {
								dangqianFm = 3;break;
							}
						} else if (race_id.compareTo(new BigDecimal("10003")) == 0) {
							if (skill.getSkillname().equals("凝神一击")) {
								dangqianFm = 1;break;
							} else if (skill.getSkillname().equals("无坚不摧")) {
								dangqianFm = 2;break;
							} else if(skill.getSkillname().equals("气吞山河")) {
								dangqianFm = 3;break;
							}
						} else if (race_id.compareTo(new BigDecimal("10004")) == 0) {
							if (sexisMan(sex)&&skill.getSkillname().equals("法魂护体")||!sexisMan(sex)&&skill.getSkillname().equals("失魂落魄")) {
								dangqianFm = 1;break;
							} else if (skill.getSkillname().equals("无坚不摧")) {
								dangqianFm = 2;break;
							} else if(sexisMan(sex)&&skill.getSkillname().equals("气聚神凝")||!sexisMan(sex)&&skill.getSkillname().equals("刚柔兼备")) {
								dangqianFm = 3;break;
							}
						} else if (race_id.compareTo(new BigDecimal("10005")) == 0) {
							if (skill.getSkillname().equals("鱼龙潜跃")) {
								dangqianFm = 1;break;
							} else if (skill.getSkillname().equals("神龙摆尾")) {
								dangqianFm = 2;break;
							} else if(skill.getSkillname().equals("行气如虹")) {
								dangqianFm = 3;break;
							}
						}
					}
				}
			}
		}
		return dangqianFm;
	}
	public boolean sexisMan(String sex) {
		return "男".equals(sex);
	}
	public Integer getGradeincrease() {
		return gradeincrease;
	}

	public void setGradeincrease(Integer gradeincrease) {
		this.gradeincrease = gradeincrease;
	}

	public Integer getGameTimeRemaining() {
		return gameTimeRemaining;
	}

	public void setGameTimeRemaining(Integer gameTimeRemaining) {
		this.gameTimeRemaining = gameTimeRemaining;
	}

	public Integer getCurrentattribute() {
		return currentattribute;
	}

	public void setCurrentattribute(Integer currentattribute) {
		this.currentattribute = currentattribute;
	}

	//宠物跟随
	public List<RoleSummoning> getShowRoleSummoningList() {
		return showRoleSummoningList;
	}

	public void setShowRoleSummoningList(List<RoleSummoning> showRoleSummoningList) {
		this.showRoleSummoningList = showRoleSummoningList;
	}

	//飞行器
	public String getFlyskin() {
		return flyskin;
	}

	public void setFlyskin(String flyskin) {
		this.flyskin = flyskin;
	}

	public Integer getFly_id() {
		if (this.fly_id == null) {
			this.fly_id = 0;
		}
		return fly_id;
	}

	public void setFly_id(Integer fly_id) {
		this.fly_id = fly_id;
	}
	public String getFmSkills() {
		return null;
	}

	public String getJiesuo() {
		return jiesuo;
	}

	public void setJiesuo(String jiesuo) {
		this.jiesuo = jiesuo;
	}
	public String getLianghaoValue() {
		return lianghaoValue;
	}

	public void setLianghaoValue(String lianghaoValue) {
		this.lianghaoValue = lianghaoValue;
	}

	public String getZhongtian() {
		return zhongtian;
	}

	public void setZhongtian(String zhongtian) {
		this.zhongtian = zhongtian;
	}

	public String getSh() {
		return sh;
	}

	public void setSh(String sh) {
		this.sh = sh;
	}
	private int shouhu=0;
	private String qinglong;
	private String baihu;
	private String xuanwu;
	private String zhuque;

	public int getShouhu() {
		return shouhu;
	}

	public void setShouhu(int shouhu) {
		this.shouhu = shouhu;
	}

	public String getQinglong() {
		return qinglong;
	}

	public void setQinglong(String qinglong) {
		this.qinglong = qinglong;
	}

	public String getBaihu() {
		return baihu;
	}

	public void setBaihu(String baihu) {
		this.baihu = baihu;
	}

	public String getXuanwu() {
		return xuanwu;
	}

	public void setXuanwu(String xuanwu) {
		this.xuanwu = xuanwu;
	}

	public String getZhuque() {
		return zhuque;
	}

	public void setZhuque(String zhuque) {
		this.zhuque = zhuque;
	}

	public String getBT() {
		return BT;
	}

	public void setBT(String BT) {
		this.BT = BT;
	}


	public String getAchieveRecordtype(String type) {
		if (achieveRecord == null || achieveRecord.equals(""))
			return "0";
		String[] v = achieveRecord.split("\\|");
		for (int i = 0; i < v.length; i++) {
			String[] v2 = v[i].split("=");
			if (v2[0].equals(type))
				return v2[1];
		}
		return "0";
	}

	public BigDecimal getTtRecord() {
		return ttRecord;
	}

	public void setTtRecord(BigDecimal ttRecord) {
		this.ttRecord = ttRecord;
	}
}
